/*
        Author: Nathan Newman
        File Name: commhand.c
        Description: Header file for commhand.c
        Last updated: 9/12/11

*/

#define N_COMMANDS 9
#define MAX_LINE 100
#define MAX_NARGS 10
#define MAX_ARGLEN 30

#define MAX_LINES_PER_PAGE 24


typedef struct {
	int (*fxn) (char args[MAX_NARGS][MAX_ARGLEN], int nArgs);
} command;

//function prototypes
void comhan(void); //main method for parsing user commands
int dummyCommand(char args[MAX_NARGS][MAX_ARGLEN], int nArgs); //used for testing purposes only
int split(char strArray[MAX_NARGS][MAX_ARGLEN], char *toSplit); //helper method to tokenize user input into string arguments for command interpretation
int confirmExit(void); //confirm that the user wants to quit the program
int pager(int*,int); //confirm that the user wants to continue displaying output when output exceeds one page
void clearStdinJunk(void); //remove data that remains in stdin buffer when sys_req does not capture all of user's input
int inputBufOv(char*); //determine whether the stdin buffer still has old data in it that needs to be cleared with clearStdinJunk()
